<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src='application/views/scripts/jquery-1.5.1.js' type="text/javascript"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=46ce9d0614bf7aefe0ba562f8cf87194&v=1.1&services=true"></script>  
<script>
$(document).ready(function(){   

	var currentLevel = 14 ;  
	var map = new BMap.Map("map_canvas");  
	
	// 设置事件
	map.addEventListener("zoomend", function() {
		currentLevel = this.getZoom() ; 
	});

	// 滚轮缩放
	map.enableScrollWheelZoom();
	map.enableKeyboard();   // 键盘操作  
	var point = new BMap.Point(118.52564,31.665277);    // 创建点坐标 
	map.centerAndZoom(point,currentLevel);     // 初始化地图,设置中心点坐标和地图级别。

	sContent= "<b style='font-size:14px'>安徽舜和工程建设公司</b>" +
		"<br>电话:0555-3355888" +
		"<br>地址:马鞍山东湖碧水湾52栋"; 

	// point = new BMap.Point(lng, lat);
	var marker = new BMap.Marker(point); 
	var infoWindow = new BMap.InfoWindow(sContent);  // 创建信息窗口对象
	map.addOverlay(marker);
	marker.openInfoWindow(infoWindow); 
});
</script>
<style>
body{margin:0px;padding:0px}
</style>
</head>
<body>
<div  style="width:240px;height:200px" id="map_canvas"></div>  
</body>
</html>